package servidor;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "ALUNO_DISCIPLINA_TURMA", schema = "servidor")
public class TurmaDisciplinaAluno implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "COD_DISCIPLINA", nullable = false)
	private String codDisciplina;
	@Column(name = "COD_TURMA", nullable = false)
	private String codTurma;
	@Column(name = "ANO_TURMA", nullable = false)
	private int anoTurma;
	@Column(name = "COD_ALUNO", nullable = false)
	private long RA;
	@Column(name = "STATUS", nullable = false)
	private int statusDis;

	public int getStatusDis() {
		return statusDis;
	}

	public void setStatusDis(int statusDis) {
		this.statusDis = statusDis;
	}

	public TurmaDisciplinaAluno() {
	}

	public TurmaDisciplinaAluno(long raAluno, String codDisciplina,
			String codTurma, int anoTurma, int Status) {
		setAnoTurma(anoTurma);
		setCodDisciplina(codDisciplina);
		setCodTurma(codTurma);
		setRa(raAluno);
		setStatusDis(Status);
	}

	public String getCodDisciplina() {
		return codDisciplina;
	}

	public void setCodDisciplina(String codDisciplina) {
		this.codDisciplina = codDisciplina;
	}

	public String getCodTurma() {
		return codTurma;
	}

	public void setCodTurma(String codTurma) {
		this.codTurma = codTurma;
	}

	public int getAnoTurma() {
		return anoTurma;
	}

	public void setAnoTurma(int anoTurma) {
		this.anoTurma = anoTurma;
	}

	public long getRa() {
		return RA;
	}

	public void setRa(long RA) {
		this.RA = RA;
	}

	public String toString() {
		return "||" + getRa() + "|" + getCodDisciplina() + "|" + getStatusDis() + "||";
	}
}